package com.java.doMain;

/**
 * @Author xyd
 * @Date 2021/12/22 20:29
 * @Version 1.0
 */
public class commodity {
    private int cID;
    private String cName;     //图书名
    private int cPrice;    //价格
    private String cType;     //类型
    private int cSalesVolume;     //销量
    private int cInventory;   //库存
    private String cStyle;     //封面
    private String cMessage;  //详细信息
    private int isshow;

    public commodity() {
    }

    public commodity(int cID, String cName, int cPrice, String cType, int cSalesVolume, int cInventory, String cStyle, String cMessage, int isshow) {

        this.cID = cID;
        this.cName = cName;
        this.cPrice = cPrice;
        this.cType = cType;
        this.cSalesVolume = cSalesVolume;
        this.cInventory = cInventory;
        this.cStyle = cStyle;
        this.cMessage = cMessage;
        this.isshow = isshow;
    }

    public int getcID() {

        return cID;
    }

    public void setcID(int cID) {
        this.cID = cID;
    }

    public String getcName() {
        return cName;
    }

    public void setcName(String cName) {
        this.cName = cName;
    }

    public int getcPrice() {
        return cPrice;
    }

    public void setcPrice(int cPrice) {
        this.cPrice = cPrice;
    }

    public String getcType() {
        return cType;
    }

    public void setcType(String cType) {
        this.cType = cType;
    }

    public int getcSalesVolume() {
        return cSalesVolume;
    }

    public void setcSalesVolume(int cSalesVolume) {
        this.cSalesVolume = cSalesVolume;
    }

    public int getcInventory() {
        return cInventory;
    }

    public void setcInventory(int cInventory) {
        this.cInventory = cInventory;
    }

    public String getcStyle() {
        return cStyle;
    }

    public void setcStyle(String cStyle) {
        this.cStyle = cStyle;
    }

    public String getcMessage() {
        return cMessage;
    }

    public void setcMessage(String cMessage) {
        this.cMessage = cMessage;
    }

    public int getIsshow() {
        return isshow;
    }

    public void setIsshow(int isshow) {
        this.isshow = isshow;
    }

    @Override
    public String toString() {
        return "commodity{" +
                "cID=" + cID +
                ", cName='" + cName + '\'' +
                ", cPrice=" + cPrice +
                ", cType='" + cType + '\'' +
                ", cSalesVolume=" + cSalesVolume +
                ", cInventory=" + cInventory +
                ", cStyle='" + cStyle + '\'' +
                ", cMessage='" + cMessage + '\'' +
                ", isshow=" + isshow +
                '}';
    }
}
